Improve Sesame voice chat compatibility with current web flow and auth bootstrap - #9
Open
SaseQ wants to merge 1 commit into
Open
Improve Sesame voice chat compatibility with current web flow and auth bootstrap#9SaseQ wants to merge 1 commit into
SaseQ wants to merge 1 commit into
Conversation
|
looks like this projects been abandoned but nice work |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates the client to match current Sesame web behavior and fixes connection failures seen with the old flow.
What changed
client_namedefault is nowConsumer-Web-AppOrigindefault is nowhttps://app.sesame.comlast_error)call_connectnow sendssettings={"character": <character>}by defaultsettings={"preset": <preset>}when providedSesameAI.ensure_external_user(...)callsPUT /api/external/userTokenManager.set_tokens(...)TokenManager.load_firebase_auth_user(...)get_valid_token(..., allow_anonymous=True)examples/voice_chat.py:--id-token--refresh-token--firebase-auth-json--no-anonymous--client-nameWhy
Sesame backend behavior changed compared to the original wrapper assumptions. The old flow caused failures such as:
403 Access denied. Anonymous users not allowed5002 Settings were not found404 No user foundThis PR aligns the Python client with the currently working web flow and restores a smooth "just run the example" experience.
Scope
Modified files:
sesame_ai/websocket.pysesame_ai/api.pysesame_ai/token_manager.pyexamples/voice_chat.pyREADME.md